package com.yf.springboot.controller;

import com.yf.springboot.service.ThreadPoolService3;
import com.yf.springboot.service.ThreadPoolService4;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 自定义线程池侧是
 *
 * @Author gblfy
 * @Date 2022-04-05 17:54
 **/
@RestController
public class ThreadPoolController2 {

    @Autowired
    private ThreadPoolService3 threadPoolService3;
    @Autowired
    private ThreadPoolService4 threadPoolService4;

    @GetMapping("/threadPoolTest2")
    public void threadPoolTest2() {
        threadPoolService3.executeAsync();
        threadPoolService4.executeAsync();
    }
}

